package sd.qd.xiaoming.coffeedesk.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.xml.bind.annotation.XmlRootElement;

@Entity
@XmlRootElement
public class CdNote extends BaseEntity {

	private String title;
	private Date time;
	private Boolean dateEnableld;
	private Boolean alertEnabled;
	private String noteJson;
	private CdNoteType type;

	public Boolean getAlertEnabled() {
		return this.alertEnabled;
	}

	public Boolean getDateEnableld() {
		return this.dateEnableld;
	}

	public String getNoteJson() {
		return this.noteJson;
	}

	public Date getTime() {
		return this.time;
	}

	public String getTitle() {
		return this.title;
	}

	@ManyToOne
	public CdNoteType getType() {
		return this.type;
	}

	public void setAlertEnabled(final Boolean alertEnabled) {
		this.alertEnabled = alertEnabled;
	}

	public void setDateEnableld(final Boolean dateEnableld) {
		this.dateEnableld = dateEnableld;
	}

	public void setNoteJson(final String noteJson) {
		this.noteJson = noteJson;
	}

	public void setTime(final Date time) {
		this.time = time;
	}

	public void setTitle(final String title) {
		this.title = title;
	}

	public void setType(final CdNoteType type) {
		this.type = type;
	}

	@Override
	public String toString() {
		return "CdNote [title=" + this.title + ", time=" + this.time + ", dateEnableld=" + this.dateEnableld + ", alertEnabled=" + this.alertEnabled + ", noteJson=" + this.noteJson + ", type="
				+ this.type + "]";
	}

}
